#ifndef QOUSER_H
#define QOUSER_H

/**
* @file qouser.h
* @describe QoUser
* @author gaoyuelong
* @date 2022/05/06
*/

#include <QString>
#include <QVector>
// User表
class QoUser
{
public:
    QoUser(int iId = -1, QString strAccount = "", QString strNickName = "", QString strPassword = "", QString strState = "offline")
    {
        this->m_iId = iId;
        this->m_strAccount = strAccount;
        this->m_strNickName = strNickName;
        this->m_strPassword = strPassword;
        this->m_strState = strState;
    }

    void setId(int iId) { this->m_iId = iId; }
    void setAccount(QString strAccount) {this->m_strAccount = strAccount;}
    void setNickName(QString strNickName) { this->m_strNickName = strNickName; }
    void setPassword(QString strPassword) { this->m_strPassword = strPassword; }
    void setState(QString strState) { this->m_strState = strState; }

    int getId() { return this->m_iId; }
    QString getAccount() {return this->m_strAccount;}
    QString getNickName() { return this->m_strNickName; }
    QString getPassword() { return this->m_strPassword; }
    QString getState() { return this->m_strState; }

private:
    int m_iId;
    QString m_strAccount;
    QString m_strNickName;
    QString m_strPassword;
    QString m_strState;

    QVector<QString> m_vecFriendAccount;
};

#endif // QOUSER_H
